﻿package com.crl.core.config.section
{
	import com.crl.core.config.section.model.ConnectionStringSetting;
	
	import flash.utils.Dictionary;
	
	/**
	 * ...
	 * @author crl
	 */
	public class ConnectionStringSection extends AbstractSection
	{
		public var keyvalues:Dictionary;
		
		public function ConnectionStringSection() 
		{
			keyvalues=new Dictionary(true);
		}
		
		override public function deserializeSection(xml:XML):void{
			var xmlList:XMLList = xml.children();
			
			var value:ConnectionStringSetting;
			
			
			for each(var item:XML in xmlList) {
				
				value = new ConnectionStringSetting();
				value.parse(item);
				
				keyvalues[value.name] = value;
			}
		}
		
		override public function getRuntimeObejct():Object 
		{
			return this.keyvalues;
		}
		
	}

}